import request from '@/utils/request'

// 查询店铺管理列表
export function listStoreManagement(query) {
  return request({
    url: '/business/storeManagement/list',
    method: 'get',
    params: query
  })
}

// 查询店铺管理详细
export function getStoreManagement(id) {
  return request({
    url: '/business/storeManagement/' + id,
    method: 'get'
  })
}

// 新增店铺管理
export function addStoreManagement(data) {
  return request({
    url: '/business/storeManagement',
    method: 'post',
    data: data
  })
}

// 修改店铺管理
export function updateStoreManagement(data) {
  return request({
    url: '/business/storeManagement',
    method: 'put',
    data: data
  })
}

// 删除店铺管理
export function delStoreManagement(id) {
  return request({
    url: '/business/storeManagement/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/storeManagement/export',
    method: 'post',
    data: data
  })
}
